package com.ztao.controller;

import com.heima.model.common.admin.dto.SensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.ztao.service.SensitiveService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/v1/sensitive")
public class SensitiveController {
    @Resource
    private SensitiveService sensitiveService;
    @PostMapping("/list")
    public ResponseResult findAll_Sensitive(SensitiveDto dto)
    {
        return sensitiveService.findAll_Sensitive(dto);
    }
}
